from TaskSetMoti_n12 import Mid_ddl_list
from task import Task
sets = []
CompuCostlist =  [24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24]
UpCostlist =     [24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24]
# Mid_ddl_list =   [279, 314, 298, 137, 222, 54, 125, 220, 284, 106, 345, 167, 47, 77, 102, 104, 81, 90, 75, 63, 102, 69, 59, 24]
Mid_ddl_list = [396, 184, 337, 393, 147, 407, 33, 60, 73, 112, 105, 278, 97, 111, 223, 139, 153, 161, 56, 35, 93, 83, 71, 48]
DDL_list =       [624, 600, 576, 552, 528, 504, 480, 456, 432, 408, 384, 360, 336, 312, 288, 264, 240, 216, 192, 168, 144, 120, 96, 72]
Period_list =    [648, 648, 648, 648, 648, 648, 648, 648,648, 648, 648, 648, 648, 648, 648, 648, 648, 648, 648, 648, 648, 648, 648, 648]
until = 100000
def GeneTaskSet(CompuCostlist,UpCostlist,Mid_ddl_list,DDL_list,Period_list):
    task_set = []
    for i in range(len(CompuCostlist)):
        c_i = CompuCostlist[i]
        r_i = UpCostlist[i]
        m_i = Mid_ddl_list[i]
        d_i = DDL_list[i]
        p_i = Period_list[i]
        task = Task(c_i,r_i,m_i,d_i,p_i)
        task_set.append(task)
    return task_set
task_set0 = GeneTaskSet(CompuCostlist,UpCostlist,Mid_ddl_list,DDL_list,Period_list)
sets.append(task_set0)
mrset = [417]